import miao.demo.config.SpringConfig;
import miao.demo.dao.BookDao;
import miao.demo.dao.impl.BookDaoImpl;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/*
    目标：掌握通知的五大类型
 */
public class App {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig.class);
        BookDao bean = ctx.getBean( "BookDaoImpl2",BookDao.class);
        System.out.println(bean);
        System.out.println(bean.getClass());
    }
}
